
//1.引用http模块

const http = require("http");

//2.创建服务器

const serve = http.createServer((req,res)=>{

    res.end("666")
})
//3.监听端口
serve.listen(8080)


console.log("服务器已经启动")